import { base } from '@/config'
import http from '@/utils/request'

const main = {
  // 系统设置统计
  getSettingCount: () => {
    return http.get(`${base.system}/setTotal/systemSettingCount`)
  },
  // 获取基本设置
  getBaseSeting: () => {
    return http.get(`${base.platform}/shopSet/setting`)
  },
  // 修改基本设置
  saveBaseSetting: params => {
    return http.postJson(`${base.platform}/shopSet/save`, params)
  },
  // 获取商城设置
  getShoppingSet: () => {
    return http.get('/platform/shopSet/getShoppingSet')
  }
}

export default main
